<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/tagInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
	<base href="${basePath}" />
	<title>${title}</title>
	<META http-equiv="content-type" content="text/html; charset=UTF-8">
	<LINK href="${basePath}styleAdmin/css/portalinabox.css" type="text/css" rel="stylesheet">		
	<meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
   <meta http-equiv="expires" content="0">
	<script type="text/javascript" src="${basePath}styleAdmin/js/prototype-1.6.0.3.js"></script>
	<script type="text/javascript" src="${basePath}styleAdmin/js/Calendar/WdatePicker.js"></script>
	<script type="text/javascript" src="${basePath}styleAdmin/js/common.js"></script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<form action="${basePath}admin/analyzer/detail.do" method="post" name="myform">
<%@include file="../common/navigate.jsp" %>
<table width="96%" border="0" align="center" cellpadding="0" style="margin-top:5px;" cellspacing="0">
	<tr>
		<td valign="top">
			<!-- 搜索栏 -->
			<table width="100%" border="1" class="mainFunctionTable"  cellpadding="0" cellspacing="1">
				<tr height="25" class="pLabel">
			   		<td class="td_nwarpstyle">&nbsp;&nbsp;消息统计-${title}</td>
			 	</tr>
			 </table>
		  </td>
	  </tr>
	  <tr>
	    <td>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
				<tr height=25 class="pLabel" align="center">
					<!-- <td width="5%" class="td_nwarpstyle">标识</td> -->
					<td class="td_nwarpstyle">消息标题</td>
					<td width="10%" class="td_nwarpstyle">来源</td>
					<td width="10%" class="td_nwarpstyle">目的</td>
					<td width="5%" class="td_nwarpstyle">同步状态</td>
					<td width="10%" class="td_nwarpstyle">同步时间</td>
					<td width="5%" class="td_nwarpstyle">是否已读</td>
					<td width="10%" class="td_nwarpstyle">已读时间</td>
					<td width="5%" class="td_nwarpstyle">是否采用</td>
					<td width="10%" class="td_nwarpstyle">采用时间</td>
				</tr>
			</table>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
					<c:forEach items="${msgInfoList}" var="msg" varStatus="status">
	   					<c:choose>
	   						<c:when test="${status.index % 2 == 0 }"><c:set var="css" value="c1" /></c:when>
	   						<c:otherwise><c:set var="css" value="c2" /></c:otherwise>
	   					</c:choose>
						<tr class="${css}">
							<!--<td width="5%" height="25px" align="center"><input type="checkbox" id="msgId" name="msgId" value="${msg.msgId}"/></td>-->
							<td>${msg.contentInfo.title}</td>
							<td width="10%" align="center">${msg.websiteFrom.name}</td>
							<td width="10%" align="center">${msg.websiteTo.name}</td>
							<td width="5%" align=center>
								<c:choose>
									<c:when test="${msg.msgStatus==1}">发送</c:when>
									<c:when test="${msg.msgStatus==2}">接收</c:when>
									<c:otherwise>未知</c:otherwise>
								</c:choose>
							</td>
							<td width="10%" align=center>${msg.statusTime}</td>
							<td width="5%" align=center>
								<c:choose>
									<c:when test="${msg.isRead==1}">已读</c:when>
									<c:otherwise>未读</c:otherwise>
								</c:choose>
							</td>
							<td width="10%" align=center>
								<c:if test="${msg.isRead==1}">${msg.readTime}</c:if>
							</td>
							<td width="5%" align=center>
								<c:choose>
									<c:when test="${msg.isUsed==1}">已采用</c:when>
									<c:otherwise>未采用</c:otherwise>
								</c:choose>
							</td>
							<td width="10%" align=center>
								<c:if test="${msg.isUsed==1}">${msg.usedTime}</c:if>
							</td>
						</tr>
					</c:forEach>
	  		</table>
		 </td>
	   </tr>
	   <tr>
		   <td height=25>
			<c:set var="pageURL" value="${basePath}admin/analyzer/detail.do?websiteId=${query.websiteId}&type=${type}&startTime=${fmtString:encoder(query.startTime)}&endTime=${fmtString:encoder(query.endTime)}&"/>
			<%@include file="../common/page.jsp"%>
		  </td>
	  </tr>
</table>
</form>
</body>
</HTML>